 package com.nondo.dean.platform.model.result;

import java.math.BigDecimal;

import com.nondo.dean.common.domain.BaseEntity;
import com.nondo.dean.common.tool.BeanUtils;
import com.nondo.dean.platform.domain.Freight;

/**
 * 
 * @author zlj
 * @date 2018年4月8日
 */
 public class FreightResult extends BaseEntity{
    /**
     * 运费折扣模板ID
     */
     private Integer id;
     
     /**
      * 区域ID
      */
     private Integer zoneId;
     
     /**
      * 区域名称
      */
     private String zoneName;
     
     /**
      * 区域运费折扣
      */
     private BigDecimal discount;
     

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getZoneId() {
        return zoneId;
    }

    public void setZoneId(Integer zoneId) {
        this.zoneId = zoneId;
    }

    public String getZoneName() {
        return zoneName;
    }

    public void setZoneName(String zoneName) {
        this.zoneName = zoneName;
    }

    public BigDecimal getDiscount() {
        return discount;
    }

    public void setDiscount(BigDecimal discount) {
        this.discount = discount;
    }

    public static FreightResult covertToBean(Freight freightDb) {
        FreightResult freightResult = new FreightResult();
        BeanUtils.copy(freightDb, freightResult);
        return freightResult;
    }
     
}
